/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rom.item;

import java.io.Serializable;

/**
 *
 * @author Luis
 */
public class ItemRestriction implements Serializable{
    
    public static int NO_DROP = 1;
    public static int NO_TRADE = 2;
    public static int ONLY_WEDDED = 4;
    public static int NO_SOLD = 8;
    public static int NO_CART = 16;
    public static int NO_STORAGE = 32;
    public static int NO_GUILD_STORAGE = 64;
    
    private int tradeMask;
    private int gmLevel;
    
    public ItemRestriction(int tradeMask, int gmLevel){
        this.tradeMask = tradeMask;
        this.gmLevel = gmLevel;
    }

    /**
     * @return the tradeMask
     */
    public int getTradeMask() {
        return tradeMask;
    }

    /**
     * @param tradeMask the tradeMask to set
     */
    public void setTradeMask(int tradeMask) {
        this.tradeMask = tradeMask;
    }

    /**
     * @return the gmLevel
     */
    public int getGmLevel() {
        return gmLevel;
    }

    /**
     * @param gmLevel the gmLevel to set
     */
    public void setGmLevel(int gmLevel) {
        this.gmLevel = gmLevel;
    }

    @Override
    public String toString() {
        return String.valueOf(getTradeMask()) + "," + String.valueOf(getGmLevel());
    }
    
}
